Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


WritePartInfo

The WritePartInfo method should write the part info data for a display frame of this part into the specified storage-unit view object.

void WritePartInfo (in ODInfoType partInfo,
                    in ODStorageUnitView storageUnitView);
partInfo
The part info data to write.
storageUnitView
A reference to a storage-unit view object that is focused to the frame's part info property, but not to any value within that property.
DISCUSSION
When a document is saved (using the Save command from the Document menu), OpenDoc may ask this part to save a display frame's part info data to a particular storage unit. OpenDoc calls this method when it writes out the part info data for a display frame of a part.

Your part's WritePartInfo method should get the storage unit associated with the specified storage-unit view and focus it to the value(s) in the frame's part info property as necessary to write the formats it needs.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

SEE ALSO
The ODInfoType type (page 883).
The ODPart::ClonePartInfo method (page 487).
The ODPart::ReadPartInfo method (page 538).
"The WritePartInfo Method" on page 110 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Reading and Writing Part Info" on page 302 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help